import java.awt.Color;
import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.layout.VerticalLayout;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.widgets.TextBox;
import org.uqbar.arena.windows.MainWindow;

public class NivelJuego extends MainWindow<Nivel> {
	
	public NivelJuego(Nivel model) {
		super(model);
	}

	@Override
	public void createContents(Panel mainPanel) {
		this.setTitle("Conversor de millas a kilÃ³metros");
		//mainPanel.setLayout(new VerticalLayout());

		//new Label(mainPanel).setText("Ingrese la longitud en millas");

		//new TextBox(mainPanel).bindValueToProperty("millas");

		//new Button(mainPanel) //
			//.setCaption("Convertir a kilÃ³metros");
			///.onClick(new MessageSend(this.getModelObject(), "convertir"));

		new Label(mainPanel) //
			.setBackground(Color.ORANGE);
			//.bindValueToProperty("kilometros");

		//new Label(mainPanel).setText(" kilÃ³metros");
	}

	public static void main(String[] args) {
		new NivelJuego(new Nivel("")).startApplication();
	}
}